#include <signal.h>
# include "wiringPi_ppmController.h"

int main(int argc, char const *argv[])
{
    ppm::init();

    ppm::controller m_controller(12, 100./3, 150, 100./3);

    cpp_tools::udpVecReceiver<double> r(1, 7303, 0);

    while (1)
    {
        if (r.receive() == 0)
        {
            m_controller.setControl(-r.get()(0));
        }
    }

    return 0;
}